// $codepro.audit.disable assignmentToNonFinalStatic
/**
 * 
 */
package officeserver.users;

import java.io.Serializable;

/**
 * @author mramsey3
 * 
 */
public class Doctor extends User implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    private static int doctorCounter = 0;

    private int id;

    public Doctor() {
	super(AccessLevel.DOCTOR);
	id = doctorCounter;
	doctorCounter++;
    }

    public Doctor(String firstName, String lastName, String username,
	    String password) {
	super(firstName, lastName, username, password, AccessLevel.DOCTOR);
	id = doctorCounter;
	doctorCounter++;
    }

    public Doctor(String firstName, String lastName, String username,
	    String password, String email, int cellPhone, int age,
	    Address address) {
	super(firstName, lastName, username, password, AccessLevel.DOCTOR,
		email, cellPhone, age, address);
	id = doctorCounter;
	doctorCounter++;
    }

    @Override
    public int getId() {
	return id;
    }

    public static int getCounter() {
	return doctorCounter;
    }

    public static void clear() {
	doctorCounter = 0;
    }
}
